package com.freewater.springboot.demo.ioc.lookupmethodinject;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class AsyncCommand implements Command {
    private Object state;

    @Override
    public void setState(Object state) {
        this.state = state;
    }

    @Override
    public void execute() {
        log.info("this command：{}, state: {}", this, this.state);
        // do something
    }
}
